import axios from '../AxiosConfig.js'

export const createDict = data => {
  return axios({
    method: 'post',
    url: '/api/dict',
    data: data
  })
}

export const deleteDict = ukId => {
  return axios({
    method: 'delete',
    url: '/api/dict',
    params: {"ukId": ukId}
  })
}

export const updateDict = data => {
  return axios({
    method: 'put',
    url: '/api/dict',
    data: data
  })
}

export const listDict = (name) => {
  return axios({
    method: 'get',
    url: '/api/dict/list',
    params: {"name": name}
  })
}


